Skip to content

Conversation

@Bilogweb3
Copy link
Contributor

The strip_bytecode_placeholders function was replacing 40-character libraryplaceholders with 80 hex characters instead of 40. This doubled the expectedsize and would corrupt the bytecode structure.

Library placeholders like __$987e73aeca5e61ce83e4cb0814d87beda9$__ are 40 chars (equivalent to a 20-byte address in hex). The replacement needs to match this length to preserve bytecode integrity.

Changed "00".repeat(40) to "00".repeat(20) which produces 40 hex chars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant